<?php
require(dirname(__FILE__)."/config.php");
CheckPurview('plus_机构管理');
require_once DEDEINC."/typelink.class.php";
if(empty($dopost))
{
	$dopost = "";
}

if($dopost=="save")
{
	$orderid = trim($orderid);     	
	$query = "
	 Insert Into #@__project(aid,typeid,orderid,username,pic,job,mainjob,address,linkus)
	 Values('$aid','$typeid','$orderid','$username','$picname','$job','$mainjob','$address','$linkus');	";
	$dsql->ExecuteNoneQuery($query);
	ShowMsg("成功增加一个机构人！","project_main.php");
	exit();
}
$dsql->Execute('dd','SELECT * FROM `#@__projecttype` ORDER BY id DESC');
$option = '';
while($arr = $dsql->GetArray('dd'))
{
    $option .= "<option value='{$arr['id']}'>{$arr['typename']}</option>\n\r";
}
include DedeInclude('templets/project_add.htm');

?>